<?php
	global $_W,$_GPC;
	if($_W['role']&&$_W['isajax']){
		$id = $_GPC['cid'];
		$sid = $_GPC['sid']=='1'?'0':'1';
		$up = pdo_update('mii_ang_card',array('status'=>$sid),array('id'=>$id));
		if($up){
			exit(json_encode(array('status'=>'1','msg'=>'更改状态成功')));	
		}else{
			exit(json_encode(array('status'=>'2','msg'=>'更改失败,请刷新页面重试')));
		}
	}else{
		exit(json_encode(array('status'=>'2','msg'=>'没有操作的权限')));
	}

?>